﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M19 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsCall",
                table: "t_QueceRecard");

            migrationBuilder.DropColumn(
                name: "IsDisplay",
                table: "t_QueceRecard");

            migrationBuilder.AlterColumn<int>(
                name: "Number",
                table: "t_QueceRecard",
                type: "int",
                maxLength: 50,
                nullable: true,
                comment: "排号",
                oldClrType: typeof(int),
                oldType: "int",
                oldMaxLength: 50,
                oldComment: "排号");

            migrationBuilder.AlterColumn<string>(
                name: "CounterNo",
                table: "t_QueceRecard",
                type: "varchar(50)",
                unicode: false,
                maxLength: 50,
                nullable: true,
                comment: "窗口号",
                oldClrType: typeof(string),
                oldType: "varchar(50)",
                oldUnicode: false,
                oldMaxLength: 50,
                oldComment: "窗口号");

            migrationBuilder.AlterColumn<int>(
                name: "BussinessId",
                table: "t_QueceRecard",
                type: "int",
                nullable: true,
                comment: "业务类型",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "业务类型");

            migrationBuilder.AddColumn<int>(
                name: "mode",
                table: "t_QueceRecard",
                type: "int",
                nullable: true,
                comment: "模式");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "mode",
                table: "t_QueceRecard");

            migrationBuilder.AlterColumn<int>(
                name: "Number",
                table: "t_QueceRecard",
                type: "int",
                maxLength: 50,
                nullable: false,
                defaultValue: 0,
                comment: "排号",
                oldClrType: typeof(int),
                oldType: "int",
                oldMaxLength: 50,
                oldNullable: true,
                oldComment: "排号");

            migrationBuilder.AlterColumn<string>(
                name: "CounterNo",
                table: "t_QueceRecard",
                type: "varchar(50)",
                unicode: false,
                maxLength: 50,
                nullable: false,
                defaultValue: "",
                comment: "窗口号",
                oldClrType: typeof(string),
                oldType: "varchar(50)",
                oldUnicode: false,
                oldMaxLength: 50,
                oldNullable: true,
                oldComment: "窗口号");

            migrationBuilder.AlterColumn<int>(
                name: "BussinessId",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "业务类型",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "业务类型");

            migrationBuilder.AddColumn<int>(
                name: "IsCall",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValueSql: "((0))",
                comment: "是否叫号");

            migrationBuilder.AddColumn<int>(
                name: "IsDisplay",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValueSql: "((0))",
                comment: "是否显示");
        }
    }
}
